home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / honeytrouble.swf / scripts / frame_120 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  1.2 KB  |  60 lines

  1. delete now_type_tmp_arr;
  2. _root.unblack = undefined;
  3. _root.BOX_x.removeMovieClip();
  4. b1.onPress = function()
  5. {
  6.    start_sound_.stop();
  7.    _root.attachMovie("BOX_x","BOX_x",_root.getNextHighestDepth());
  8.    re_back_func_();
  9.    _root.pop_ = ["h","o","n","e","y"];
  10.    if(testClassNum)
  11.    {
  12.       levelNum = testClassNum;
  13.    }
  14.    else
  15.    {
  16.       levelNum = 1;
  17.    }
  18.    gotoAndStop("mode");
  19.    play();
  20. };
  21. b2.onPress = function()
  22. {
  23.    start_sound_.stop();
  24.    _root.attachMovie("BOX_x","BOX_x",_root.getNextHighestDepth());
  25.    re_back_func_();
  26.    _root.pop_ = ["h","o","n","e","y"];
  27.    levelNum = 8;
  28.    gotoAndStop("mode");
  29.    play();
  30. };
  31. b3.onPress = function()
  32. {
  33.    start_sound_.stop();
  34.    _root.attachMovie("BOX_x","BOX_x",_root.getNextHighestDepth());
  35.    re_back_func_();
  36.    _root.pop_ = ["h","o","n","e","y"];
  37.    levelNum = 15;
  38.    gotoAndStop("mode");
  39.    play();
  40. };
  41. if(level3CanShow)
  42. {
  43.    M2._alpha = 0;
  44.    M3._alpha = 0;
  45. }
  46. else if(level2CanShow)
  47. {
  48.    b3._alpha = 50;
  49.    b3.enabled = false;
  50.    M2._alpha = 0;
  51. }
  52. else
  53. {
  54.    b2._alpha = 50;
  55.    b2.enabled = false;
  56.    b3._alpha = 50;
  57.    b3.enabled = false;
  58. }
  59. Key.removeListener(key_listener);
  60.